import React from 'react'
import {LoginStore} from './login.store'
import { UserStore } from './user.Store'; 
import {ChannelStore} from './channel.Store'
const { makeAutoObservable } = require("mobx");
class RootStore{
  constructor(){
    makeAutoObservable(this);
    this.LoginStore=new LoginStore()
    this.UserStore=new UserStore()
    this.ChannelStore=new ChannelStore()
    
  }
}
const rootStore=new RootStore()
const context=React.createContext(rootStore);
const useStore=()=>React.useContext(context)
export default useStore